

SRCPATH := ./src
OBJS := $(SRCPATH)/main.o	\
	$(SRCPATH)/1.o	\
	$(SRCPATH)/2.o

test: $(OBJS) 
	gcc -o test $^

$(SRCPATH)/1.o: $(SRCPATH)/1.c
	gcc -c $^ -o $@

$(SRCPATH)/2.o: $(SRCPATH)/2.c 
	gcc -c $^ -o $@

$(SRCPATH)/main.o: $(SRCPATH)/main.c
	gcc -c $^ -o $@


clean:
	rm $(SRCPATH)/*.o test
